import request from "@/utils/request";
//获取文章详情
export const getArticle = articlrId => request({
  url: `/v1_0/articles/${articlrId}`
})
//关注用户
export const onFocusAur = target => request({
  url: '/v1_0/user/followings',
  method: 'POST',
  data: {
    target
  }
})
//取消关注
export const onBlurAur = target => request({
  url: `/v1_0/user/followings/${target}`,
  method: 'DELETE',
})
//对文章点赞
export const onLikeArticle = target => request({
  url: '/v1_0/article/likings',
  method: 'POST',
  data: {
    target
  }
})
//取消点赞
export const onDelLikeAur = target => request({
  url: `/v1_0/article/likings/${target}`,
  method: 'DELETE',
})
//收藏文章
export const collectArticle = target => request({
  url: '/v1_0/article/collections',
  method: 'POST',
  data: {
    target
  }
})
//取消收藏
export const delColArticle = target => request({
  url: `/v1_0/article/collections/${target}`,
  method: 'DELETE',
})